home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 312 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: howland.reston.ans.net!torn!govonca3!usenet
  2. From: dcassidy@ottawa.net (Derick)
  3. Newsgroups: vmsnet.sources.d,comp.lang.c++
  4. Subject: Problem Reading Records
  5. Date: Wed, 03 Jan 1996 18:10:55 GMT
  6. Organization: Government of Ontario
  7. Message-ID: <4ceh2g$9hd@govonca3.gov.on.ca>
  8. Reply-To: dcassidy@ottawa.net
  9. NNTP-Posting-Host: 204.41.226.99
  10. X-Newsreader: Forte Agent .99b.113
  11.  
  12. Hi...
  13.  
  14. This is going to sound like a real dumb question.  First of all, let
  15. me give you some background.  I am new to the VMS programming
  16. environment (but not programming in general) and am having some
  17. problems using RMS with C/C++
  18.  
  19. Here is a screen capture of what the file details are:
  20.  
  21. REG.DBS;1                     File ID:  (34902,27,0)
  22. Size:         2828/2828       Owner:    [CASSIDYD]
  23. Created:   10-AUG-1995 08:21:32.19
  24. Revised:    3-JAN-1996 12:27:32.90 (3659)
  25. Expires:   <None specified>
  26. Backup:    <No backup recorded>
  27. Effective: <None specified>
  28. Recording: <None specified>
  29. File organization:  Indexed, Prolog: 3, Using 2 keys
  30. Shelved state:      Online
  31. File attributes:    Allocation: 2828, Extend: 0, Maximum bucket size:
  32. 4
  33.                     Global buffer count: 0, No version limit
  34.                     Contiguous best try
  35. Record format:      Variable length, maximum 1960 bytes
  36. Record attributes:  Carriage return carriage control
  37. RMS attributes:     None
  38. Journaling enabled: None
  39. File protection:    System:RWED, Owner:RWED, Group:RE, World:R
  40. Access Cntrl List:  None
  41.  
  42. Total of 1 file, 2828/2828 blocks.
  43.  
  44. What i am trying to do seems very simple.  I would like to extract all
  45. the records in the REG.DBS file and output them to a standard ASCII
  46. file that I can port to my PC.  I will then do some analysis on the
  47. file.
  48.  
  49. Is reading the records as easy as a sys$get(&fab) command?  Or do i
  50. have to do a whole lot more?
  51.  
  52. Thanks in advance
  53. D.
  54.  
  55.